package com.geek.game.manager.agent.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import ydh.cicada.api.Column;
import ydh.cicada.api.Entity;
/**
 * 产品套餐表
 * @author Tears
 *
 */
import ydh.cicada.api.Id;
@Entity(name="t_products")
public class Products implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="product_id")
	private Integer productId;
	
	@Column(name="product_name")
	private String productName;
	
	@Column(name="diamond_numbers")
	private Integer diamondNumbers;
	
	@Column(name="product_price")
	private String productPrice;
	
	@Column(name="unit_price")
	private String unitPrice;//单位价格
	
	@Column(name="authority_level")
	private Integer authorityLevel=0;//权限级别:0:全部可见,1:一级代理可见,二级级代理不可见,2:二级代理可见,一级代理不可见:
	
	@Column(name="limited_type")
	private LimitedType limitedType=LimitedType.NONE;//限时类型  ：星期，时间段，某一天
	
	@Column(name="weekday")
	private Week weekday;		//星期几：限时类型为Week时使用
	
	@Column(name="start_time")
	private Date startTime;		//开始日期：限时类型为TIMEQUANTUM时使用
	
	@Column(name="end_time")
	private Date endTime;		//结束日期：限时类型为TIMEQUANTUM时使用
	
	@Column(name="create_time")
	private Date createTime;
	
	@Column(name="modify_time")
	private Date modifyTime;
	
	@Column(name="close_flag")
	private Boolean closeFlag=false;//是否关闭
	@Column(name="disabled")
	private Boolean disabled=false;//是否有效
	public Integer getProductId() {
		return productId;
	}
	public void setProductId(Integer productId) {
		this.productId = productId;
	}
	public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}
	public Integer getDiamondNumbers() {
		return diamondNumbers;
	}
	public void setDiamondNumbers(Integer diamondNumbers) {
		this.diamondNumbers = diamondNumbers;
	}

	public String getProductPrice() {
		return productPrice;
	}
	public void setProductPrice(String productPrice) {
		this.productPrice = productPrice;
	}
	public String getUnitPrice() {
		return unitPrice;
	}
	public void setUnitPrice(String unitPrice) {
		this.unitPrice = unitPrice;
	}
	public LimitedType getLimitedType() {
		return limitedType;
	}
	public void setLimitedType(LimitedType limitedType) {
		this.limitedType = limitedType;
	}
	public Week getWeekday() {
		return weekday;
	}
	public void setWeekday(Week weekday) {
		this.weekday = weekday;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getModifyTime() {
		return modifyTime;
	}
	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}
	public Boolean getCloseFlag() {
		return closeFlag;
	}
	public void setCloseFlag(Boolean closeFlag) {
		this.closeFlag = closeFlag;
	}
	public Boolean getDisabled() {
		return disabled;
	}
	public void setDisabled(Boolean disabled) {
		this.disabled = disabled;
	}
	public Integer getAuthorityLevel() {
		return authorityLevel;
	}
	public void setAuthorityLevel(Integer authorityLevel) {
		this.authorityLevel = authorityLevel;
	}
	
	
}
